package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * ry_medicine对象 ry_medicine
 * 
 * @author ruoyi
 * @date 2022-07-28
 */
public class RyMedicine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品ID */
    private String id;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String name;

    /** 药品价格 */
    @Excel(name = "药品价格")
    private String medicinemoney;

    /** 药品数量 */
    @Excel(name = "药品数量")
    private String medicinenum;

    /** 药字号 */
    @Excel(name = "药字号")
    private String mpn;

    /** 添加日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adddate;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMedicinemoney(String medicinemoney) 
    {
        this.medicinemoney = medicinemoney;
    }

    public String getMedicinemoney() 
    {
        return medicinemoney;
    }
    public void setMedicinenum(String medicinenum) 
    {
        this.medicinenum = medicinenum;
    }

    public String getMedicinenum() 
    {
        return medicinenum;
    }
    public void setMpn(String mpn) 
    {
        this.mpn = mpn;
    }

    public String getMpn() 
    {
        return mpn;
    }
    public void setAdddate(Date adddate) 
    {
        this.adddate = adddate;
    }

    public Date getAdddate() 
    {
        return adddate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("medicinemoney", getMedicinemoney())
            .append("medicinenum", getMedicinenum())
            .append("mpn", getMpn())
            .append("adddate", getAdddate())
            .toString();
    }
}
